﻿using StructureMap;

namespace reDoo.Web.Configuration
{
    /// <summary>
    /// Handles required bootstrapping steps for the application.
    /// </summary>
    public static class ApplicationBootstrapper
    {
        /// <summary>
        /// Start the bootstrapping for the application.
        /// </summary>
        public static void Bootstrap()
        {
            ObjectFactory.Initialize(x => x.Scan(s =>
                                                     {
                                                         s.AssembliesFromApplicationBaseDirectory();
                                                         s.LookForRegistries();
                                                     }));
        }
    }
}